package com.cn.steam.iam.mapper.iam;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.steam.iam.model.po.ExtClientUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import static com.cn.steam.foundation.common.model.CommonConstant.DATA_SOURCE_KEY_IAM;


/**
 * @author huangzz
 */
@DS(DATA_SOURCE_KEY_IAM)
public interface ExtClientUserMapper extends BaseMapper<ExtClientUser> {
	@Select("SELECT * FROM ext_client_user WHERE ssl_type = #{sslType} AND ssl_user_id = #{sslUserId} LIMIT 1")
	ExtClientUser selectBySslUserIdAndSslType(@Param("sslType")String sslType, @Param("sslUserId")String sslUserId);
}
